package me.ywd.consumer.feign.controller;

import me.ywd.consumer.feign.feign.ProviderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ye_Wenda
 * @Date 8/8/2017
 */
@RestController
@RequestMapping("/consumer/feign")
public class ConsumeFeignController {

    @Autowired
    private ProviderFeign providerFeign;

    @GetMapping
    public String get() {
        return providerFeign.services();
    }
}
